<?php
interface Database
{
    public function Connect         ( $host, $user, $password, $port );
    public function Set             ( $option, $value );
    public function Close           ();

    public function CreateDB        ( $db_name );
    public function DropDB          ( $db_name );
    public function CreateTable     ( $tb_name );
    public function DropTable       ( $tb_name );
    public function TruncateTable   ( $tb_name );

    public function Query           ( $query );
    public function Select          ( $table, $fields, $where);
    public function Insert          ( $table, $fields, $values);
    public function Update          ( $table, $fields, $values, $where);
    public function Delete          ( $table, $where);

    public function AffectedRows    ();
    public function LastInsertID    ();
    
    public function ListTables		();
}
?>
